<cfcomponent output="no">
	<cfset THIS.name = "cfugrss">
    
    <cffunction name="onApplicationStart" >
    	<cfset APPLICATION.oAggregator = CreateObject("component","rss_aggregator").init()>
        <cfset APPLICATION.oAggregator.DoAllPings()>
    </cffunction>
    
    <cffunction name="onRequestStart">
    	<cfif StructKeyExists(URL,"reinit")>
        	<cfset onApplicationStart()>
            <cf_cfug_scopecache name="feedoutput" scope="application" clearAll="TRUE">
        </cfif>
        <cfif listlast(cgi.script_name, "/") is "feedconfig.xml.cfm">
            <cfabort>
        </cfif>
    </cffunction>
</cfcomponent>